package com.zwh.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zwh.entity.Menu;
import com.zwh.service.MenuService;

@Controller("menuController")
@RequestMapping("menu")
public class MenuController {
	@Autowired
	private MenuService menuService;
	
	@RequestMapping("queryMenu")
	@ResponseBody
	public List<Menu> queryMenu(){
		return menuService.selectMenu();
	}
}
